package com.zhangyang.dubbo;

import org.springframework.stereotype.Service;

/**
 *  Created by zhangyang on 2017/8/30.
 */
@Service(value = "orderService")
public class OrderServiceImpl  implements OrderService{
    public OrderServiceImpl() {
    }

    /**
     * 取消订单
     * @param requestCode
     * @return
     */
    public ResponseCode doOrder(RequestCode requestCode){
        System.out.println("OrderServiceImpl ..曾经来过");
        ResponseCode responseCode=new ResponseCode();
        responseCode.setCode(10001);
        responseCode.setId("1234567890");
        responseCode.setMsg("访问成功!");
        return responseCode;
    }

    /**
     * 取消订单
     * @param requestCode
     * @return
     */
    public ResponseCode cancelOrder(RequestCode requestCode) {
        System.out.println("OrderServiceImpl ..cancelOrder 取消订单 曾经来过");
        ResponseCode responseCode=new ResponseCode();
        responseCode.setCode(10002);
        responseCode.setId("88888888888");
        responseCode.setMsg("取消订单访问成功!");
        return responseCode;
    }
}
